/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"95AAB894-07D2-4D3A-91B6-8B7ADE8B5741"}
 */
function imprime_op(event) 
{
	if (codigo_movimiento == 4)
	{
		forms.opago_cabecera_imp.controller.loadRecords(op_cabecera_id)
		forms.opago_cabecera_imp.controller.showPrintPreview();
		/*var $params = {
		pFacturaId: op_cabecera_id,
		pRazonSocial: uservs_to_uservs.razon_social,
		pDireccion: uservs_to_uservs.calle_nro,
		pCodPostal: uservs_to_uservs.cod_postal,
		pProvincia: uservs_to_uservs.uservs_to_provincias.descripcion,
		pCuit: uservs_to_uservs.cuit,
		pCodBrutos: uservs_to_uservs.cod_ing_brutos,
		pIva: uservs_to_uservs.uservs_to_tipo_iva.tipo_iva_desc,
		tipo_doc: 'Orden de Pago'
	}
	globals.metodoJasper('impresion','proveedores/orden_pago.jasper','Orden_pago_n'+nro_comprobante,'infocom',$params)*/

	}
	if (codigo_movimiento == 5)
		forms.opago_cabecera_imp_copy.controller.showPrintPreview(true);
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"7781C937-A62A-49B4-B824-D72E25456B2C"}
 */
function imprime_reten(event) 
{
	var $frm = elements.tab_retenciones.getTabFormNameAt(elements.tab_retenciones.tabIndex)
	forms[$frm].controller.showPrintPreview(true);
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"52EE601F-F5DD-481B-9E4E-0F4B99ED3F22"}
 */
function salir(event) 
{
	var $win = application.getWindow('imp_op');
	$win.hide()
	$win.destroy()
}
